package javaBase;

/**
 * Created by rzd on 2017/5/13.
 */
public class testString {
    public static void main(String[] args) {
        String s1 = "1234";
        String s2 = new String("1234");
        String s3 = "1234";
        System.out.printf(String.valueOf(s1==s2?1:0));
        System.out.printf(String.valueOf(s1==s3?1:0));
    }
}
